<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>js的使用</title>
		<!-- JS使用1.在head标签中内嵌JS标签script-->
		<!--
				<script>
			document.write("hello world");
		</script>
       -->
		<!--JS使用3.外联式-->
		<script src="js/outuse.js"></script>

	</head>

	<body>
		<div id="div1"></div>
		<!--JS使用2.将JS代码写在body中-->
		<script>
			//1.获取显示区域 根据id获取标签
			var showDiv = document.getElementById("div1");
			//2.向HTML写字2.innerHTML、innerText
			showDiv.innerHTML = "<h1>you are beatiful</h1>";
			showDiv.innerHTML = "I maybe look up you";
			showDiv.innerText = "you should let me be your boyfriend";
		</script>
	</body>

</html>